{layout name="layout/default" /}
<div class="panel panel-default panel-intro">
    <div class="panel-heading"><div class="panel-lead"><em>{$nav_title.title}</em>{$nav_title.remark}</div></div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in">
                <div class="widget-body no-padding">
                <div class="bootstrap-table"><div class="fixed-table-toolbar"><div class="bs-bars pull-left"><div id="toolbar" class="toolbar"><a href="{:admin_url('admin/member/index')}" class="btn btn-primary ajax-url"><i class="fa fa-refresh"></i> </a>
                 <a href="javascript:;" data-name="添加管理" data-url="{:admin_url('admin/member/add')}"  class="btn btn-success btn-add btn-editone" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-plus"></i> 添加</a> 
                 <a  url="{:admin_url('admin/member/status',array('status'=>1))}" target-form="ids" class="confirm btn btn-info btn-del btn-disabled ajax-post disabled"><i class="fa fa-unlock"></i> 启用</a>
                 <a  url="{:admin_url('admin/member/status',array('status'=>0))}" target-form="ids" class="confirm btn btn-warning btn-del btn-disabled ajax-post disabled"><i class="fa fa-lock"></i> 禁用</a>
                <a  url="{:admin_url('admin/member/del')}" target-form="ids" class="confirm btn btn-danger btn-del btn-disabled ajax-post disabled"><i class="fa fa-trash"></i> 删除</a>  <span id="selectedChks" style="display:none">已选择<strong></strong>记录</span>
                    </div></div></div></div> 
                    <div class="fixed-table-container" style="padding-bottom: 0px;" id="contents">            
   <div class="fixed-table-body"> 
   <form class="ids">                
 <table id="table ids" class="table table-striped table-bordered table-hover" width="100%">
          <thead>
            <tr style="height:45px;">
             <th align="center" class="bs-checkbox"><input name="chkall" type="checkbox" id="chkall"></th>
              <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="m_uid desc"}<a href="{:admin_url('admin/member/index',array('type'=>'m_uid','order'=>'asc'))}" class="btn-link sort ajax-url">ID <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/member/index',array('type'=>'m_uid','order'=>'desc'))}" class="btn-link sort ajax-url">ID <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle;">用户名</th>
              <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="group_id desc"}<a href="{:admin_url('admin/member/index',array('type'=>'group_id','order'=>'asc'))}" class="btn-link sort ajax-url">所属角色 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/member/index',array('type'=>'group_id','order'=>'desc'))}" class="btn-link sort ajax-url">所属角色 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle;">状态</th>
              <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="m_last_login_time desc"}<a href="{:admin_url('admin/member/index',array('type'=>'m_last_login_time','order'=>'asc'))}" class="btn-link sort ajax-url">最后登录时间 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/member/index',array('type'=>'m_last_login_time','order'=>'desc'))}" class="btn-link sort ajax-url">最后登录时间 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle;">最后登录IP</th>
              <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="m_login desc"}<a href="{:admin_url('admin/member/index',array('type'=>'m_login','order'=>'asc'))}" class="btn-link sort ajax-url">登录次数 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:admin_url('admin/member/index',array('type'=>'m_login','order'=>'desc'))}" class="btn-link sort ajax-url">登录次数 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle;">操作</th>
            </tr>
            </thead>
           <tbody>
           {notempty name="list"}
               {volist name="list" id="item"}
                <tr>
                <td class="bs-checkbox" style="text-align:center;vertical-align: middle;"><input name="id[]" type="checkbox" value="{$item['uid']}" id="checkbox"></td>
                <td style="text-align:center;vertical-align: middle;">{$item['uid']}</td>
                <td style="text-align:center;vertical-align: middle;">{$item['username']}</td> 
                <td style="text-align:center;vertical-align: middle;">{eq name="item.uid" value="$Think.config.user_administrator"}超级管理员{else /}{$item['title']}{/eq}</td>
                 <td style="text-align:center;vertical-align: middle;">
                 {eq name="item.status" value="1"}
                 <a class="btn btn-info btn-xs btn-success ajax-get" url="{:admin_url('admin/member/status',array('id'=> $item['uid'],'status'=>0))}">正常</a>{else /}<a class="btn btn-info btn-xs btn-danger ajax-get" url="{:admin_url('admin/member/status',array('id'=> $item['uid'],'status'=>1))}">禁用</a>{/eq}
                                    </td>                      
                <td style="text-align:center;vertical-align: middle;">{$item['last_login_time']|date='Y-m-d:H:i:s',###}</td>
                <td style="text-align:center;vertical-align: middle;"><i class="fa fa-map-marker"></i>{$item['last_login_ip']|long2ip}</td>
                <td style="text-align:center;vertical-align: middle;">{$item['login']}</td>
                <td style="text-align:center;vertical-align: middle;">
                            <a href="javascript:;" data-name="编辑管理{$item['username']}" data-url="{:admin_url('admin/member/edit',array('id'=>$item['uid']))}" class="btn btn-success btn-editone btn-xs" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-pencil"></i> 编辑</a>
							<a url="{:admin_url('admin/member/del',array('id'=>$item['uid']))}" class="confirm btn btn-danger btn-xs confirm ajax-get"><i class="fa fa-trash-o"></i> 删除</a></td>
              </tr>
            {/volist}   
                 {else/}<tr><td style="text-align:center;vertical-align: middle;" colspan="9" >抱歉，没有找到相关内容！</td></tr>{/notempty}           
          </tbody>
        </table>
         </form>
</div></div></div></div><div class="clearfix"></div>
                </div>
            </div>
        </div>
        </div>
    </div>
</div>